package com.sgcc.nfc.lock.domain.model

fun MapPoint.isProblematic(): Boolean =
    openCount > 0 || malfunctionCount > 0 || status == RoomStatus.IN_USE || status == RoomStatus.ALERT

fun MapPoint.isIdle(): Boolean =
    lockCount == 0 || status == RoomStatus.UNKNOWN

fun MapPoint.isClosed(): Boolean = !isProblematic() && !isIdle()
